﻿using MyCode.Project.Infrastructure.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCode.Project.Domain.Message.Request.Activity
{
    #region 获取店铺会员
    public class ShareMemberReq
    {
        /// <summary>
        /// 店铺ID(加盟商查看必须传值)
        /// </summary>
        public Guid? ShopId { get; set; }

        /// <summary>
        /// 活动ID
        /// </summary>
        public Guid ActivityId { get; set; }

        /// <summary>
        /// 关键字（名称或手机号）
        /// </summary>
        public string KeyWord { get; set; }
    }
    #endregion

    #region 提交有资格分销的会员信息
    public class IsShareMemberReq
    {
        /// <summary>
        /// 店铺ID(加盟商查看必须传值)
        /// </summary>
        public Guid? ShopId { get; set; }

        /// <summary>
        /// 活动ID
        /// </summary>
        public Guid ActivityId { get; set; }

        /// <summary>
        /// 会员主键集合
        /// </summary>
        public List<MemberIds> IdActs { get; set; }
    }
    public class MemberIds
    {
        /// <summary>
        /// 会员主键
        /// </summary>
        public Guid MemberId { get; set; }
    }

    #endregion

    #region 获取店铺分佣设置
    public class ActivityProfitReq
    {
        /// <summary>
        /// 店铺ID(加盟商查看必须传值)
        /// </summary>
        public Guid? ShopId { get; set; }

        /// <summary>
        /// 活动ID
        /// </summary>
        public Guid ActivityId { get; set; }
    }
    #endregion

    #region 提交分佣设置
    public class SetActivityProfitReq
    {

        /// <summary>
        /// 分佣对象主键
        /// </summary>
        public Guid? ShopId { get; set; }

        /// <summary>
        /// 活动ID
        /// </summary>
        public Guid ActivityId { get; set; }

        /// <summary>
        /// 分佣设置列表
        /// </summary>
        public List<ActivityProfit> ActivityProfitList { get; set; }

    }
    public class ActivityProfit
    {
        /// <summary>
        /// 分佣数据主键
        /// </summary>
        public Guid? id { get; set; }

        /// <summary>
        /// 分佣对象主键
        /// </summary>
        public Guid? ProfitId { get; set; }

        /// <summary>
        /// 分佣百分比
        /// </summary>
        public decimal? ProfitPercent { get; set; }

        /// <summary>
        /// 分销设置对象 0：店长 1：店员  2：购买者 3：直接推荐人
        /// </summary>
        public int ProfitType { get; set; }
    }
    #endregion

    #region 加盟商结款

    /// <summary>
    /// 加盟商结款数据
    /// </summary>
    public class SetSettledReq
    {
        /// <summary>
        /// 获利用户主键
        /// </summary>
        public Guid ProfitId { get; set; }

        /// <summary>
        /// 已结算对象类型   0 店长 1 店员 2 会员 
        /// </summary>
        public int ProfitType { get; set; }

        /// <summary>
        /// 当前汇总时间
        /// </summary>
        public DateTime Time { get; set; }

        /// <summary>
        /// 店铺主键ID
        /// </summary>
        public Guid ShopId { get; set; }
    }
    #endregion

}
